package com.zuorenke.vertx.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Z.R.K
 * @description
 * @create 2019-05-16 15:21:24
 **/
@Data
@Component
@ConfigurationProperties(prefix = "vertx")
public class VertxProperties {
	private String handlerPackages;
	private String webApiPackages;
	/**
	 * 异步服务所在包路径
	 */
	private String asyncServiceImplPackages;
	/**
	 * http服务器端口号
	 */
	private int httpServerPort;
	/**
	 * 工作线程池大小（可根据实际情况调整）
	 */
	private int workerPoolSize;
	/**
	 * 异步服务实例数量（建议和CPU核数相同）
	 */
	private int asyncServiceInstances;
	
	private String disableHeaderCheck;
	
	private String disableMetrics;
	
	private String disableDnsResolver;
	
}
